Dynomotion

Group: DynoMotion Message: 8379 From: geast1967 Date: 9/20/2013
Subject: External feedrate potensiometer
Hi everybody.
I'm using the KmotionCNC program for controlling my machine.
I need to install an external potensiometer in order to change the feedrate.
I already install a potensiometer that controls the jog feedrate, but i need another one to control the feedrate when the gcode is executed. Now i'm doing it via the KmotionCNC slider, but it is not so practical and it would be better if i could install an externa potensiometer on an analog input.
 
Group: DynoMotion Message: 8384 From: Tom Kerekes Date: 9/22/2013
Subject: Re: External feedrate potensiometer
Attachments :
    Hi,

    Attached is a C program that should do this.  If you connect a 0-5V pot to Kanalog ADC0 it should change the KMotionCNC Screen FRO Slider.  Use with Test Version 4.31k

    You would need to add or merge this code into a loop at the end of your Initialization C Program.  But for testing you might run it in a separate Thread from KMotion.

    We just found a Software Bug regarding Kanalog ADC7 where it is basically functioning as an 8-bit ADC rather than a 12-bit ADC (readings change in steps of 16 ADC Counts).  We are testing a fix, but in the mean time please avoid use of ADC7.  Use ADC0 as in the Attached Program.

    Regards
    TK

    Group: DynoMotion Message: 8385 From: Tom Kerekes Date: 9/23/2013
    Subject: Re: External feedrate potensiometer
    Strange I don't see the attachment on Yahoo Groups.  Maybe Yahoo Groups don't like .c files.  Here is a link if you didn't receive it.

    http://dynomotion.com/Software/CPrograms/SetFROwithPot.c

    Regards
    TK


    Group: DynoMotion Message: 8388 From: geast1967 Date: 9/25/2013
    Subject: Re: External feedrate potensiometer

    Thank you for the reply.

    I try to compile the program you send me but the include file  "KflopToKMotionCNCFunctions.c" is missing or what file should i include.



    ---In dynomotion@yahoogroups.com, <tk@...> wrote:

    Strange I don't see the attachment on Yahoo Groups.  Maybe Yahoo Groups don't like .c files.  Here is a link if you didn't receive it.

    http://dynomotion.com/Software/CPrograms/SetFROwithPot.c

    Regards
    TK


    Group: DynoMotion Message: 8389 From: Tom Kerekes Date: 9/25/2013
    Subject: Re: External feedrate potensiometer
    If you are using Test Version 4.31k as I recommended it should be in the C Programs directory.


    Or here is a link:

    http://dynomotion.com/Software/CPrograms/KflopToKMotionCNCFunctions.c

    But this will only work with recent Test Versions.

    Regards
    TK